package com.ncloud.resman.service;

import com.alibaba.fastjson.JSONObject;
import com.ncloud.resman.entity.VirtualMachine;

import java.util.List;

/**
 * Created by shiqiang on 2017/8/28.
 */
public interface VirtualMachineService {
    int insertVirtualMachine(VirtualMachine virtualMachine);
    int updateVirtualMachine(VirtualMachine virtualMachine);
    VirtualMachine getVirtualMachineById(Long virtualId);//
    List<VirtualMachine> getVirtualMachineByDeviceId(Long deviceId);//
    List<JSONObject> getRoomAll();
    List<JSONObject> getCabinetByRoomId(Long roomId);//
    List<JSONObject> getDeviceServerByCabinetId(Long cabinetId);
    int deleteVirtualMachine(Long virtualId);
    JSONObject getDeviceServerBaseInfo(Long deviceId);
    int updateVirtualMachineState(Long virtualId,String state);
}
